import updateManager from './common/updateManager';

App({
  onLaunch: function () {},
  onShow: function () {
    updateManager();
  },
  globalData: {
    BaseUrl: 'http://140.144.235.67:9500',
    home_paginate_index: 0,
    home_paginate_num: 20,
  },
  /** 设置全局数据 */
  setGlobalData: function( obj ) {
    Object.keys( obj ).map( key => {
      this.globalData[ key ] = obj[ key ];
    });
  },
});
